<template>
  <div>
    <h1>parentA</h1>
    <son-a>
      <!-- <h1 slot="yangyang">{{ msg }}</h1> -->
      <template v-slot:yangyang>
        <div>
          <h1>{{ msg }}</h1>
          <h1>ccz</h1>
        </div>
      </template>
      <!-- 作用域插槽 -->
      <template v-slot:hanhan="test">
        <div>
          <h1>{{ test }}</h1>
        </div>
      </template>
    </son-a>
  </div>
</template>

<script>
import SonA from "./SonA.vue";
export default {
  data() {
    return {
      msg: "孙伟给的",
    };
  },
  components: {
    SonA,
  },
};
</script>

<style lang="scss" scoped>
</style>